<?php /* EL PSY CONGROO */     		    	
require '../../../../zb_system/function/c_system_base.php';     				   
require '../../../../zb_system/function/c_system_admin.php';         		 
$zbp->Load();     	 					
$action='root';    	 		 		 
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}    		   		 
if (!$zbp->CheckPlugin('San_Rabbit')) {$zbp->ShowError(48);die();}      	  			
$blogtitle='主题配置';         		 
require $blogpath . 'zb_system/admin/admin_header.php';     	      
require $blogpath . 'zb_system/admin/admin_top.php';     				 	 
require $blogpath . 'zb_users/theme/San_Rabbit/plugin/header.php';     		  	  
if(isset($_POST['Data'])){    	 		    
    if (function_exists('CheckIsRefererValid')) CheckIsRefererValid();     	  			 
	foreach($_POST['Data'] as $key=>$val){    	 		 	  
	   $zbp->Config('San_Rabbit')->$key = $val;    		 		  	
	}    		  		  
	$zbp->SaveConfig('San_Rabbit');    							 
	$zbp->ShowHint('good');    				 			
}    			 	   
?>

<div class="page">
          
            <div class="left-admin-menu">
                <nav class="admin-menu">
                  <ul id="treeMenu" class="tree tree-menu" data-ride="tree">
                    <?php San_Rabbit_SubMenu(3);?>
                    
                  </ul>
                </nav>
            </div>
            <div class="content">
            	
                <div class="panel">
                    <div class="panel-heading">
                        <strong><i class="icon icon-user"></i>&nbsp;&nbsp;其他设置</strong>
                    </div>
                    <div class="table-border">
                         <form id="form1" name="form1" method="post">
                            <table class="table table-line-height table-details table-hover ">
                                <tbody>
                                    
                                    <tr>
										<td>
											<p align="center">侧栏关于模块</p>
										</td>
										<td>
											<p align="left">
												<input type="text" id="guanyu" name="Data[guanyu]" class="checkbox" value="<?php echo $zbp->Config('San_Rabbit')->guanyu;?>"/>
											</p>
										</td>
										<td><p align="left">侧栏是否显示关于模块</p></td>
									</tr>
									 <tr>
										<td><p align="center">关于模块背景图</p></td>
										<td>
											<div class="input-control search-box has-icon-left has-icon-right search-example">
												<input id="uplod_img2" type="text" class="form-control uplod_img" name="Data[gybg]" value="<?php echo $zbp->Config('San_Rabbit')->gybg;?>" style="margin: 0;">
												<input type="button" class="btn upload_button btn-primary" value="上传">
											</div>
										</td>
										<td><p align="left">尺寸建议：518x216</p></td>
									</tr>
									<tr>
										<td><p align="center">关于模块头像</p></td>
										<td>
											<div class="input-control search-box has-icon-left has-icon-right search-example">
												<input id="uplod_img2" type="text" class="form-control uplod_img" name="Data[gyav]" value="<?php echo $zbp->Config('San_Rabbit')->gyav;?>" style="margin: 0;">
												<input type="button" class="btn upload_button btn-primary" value="上传">
											</div>
										</td>
										<td><p align="left">尺寸建议：100x100</p></td>
									</tr>                   
									<tr>
										<td>
											<p align="center">关于-名称</p>
										</td>
										<td>
											<p align="left">
												<input name="Data[gyname]" type="text" id="gyname" style="width:98%;" value="<?php echo $zbp->Config('San_Rabbit')->gyname;?>" />
											</p>
										</td>
										<td><p align="left">填写名称-例如：XXX博客 </p></td>
									</tr>
									<tr>
										<td>
											<p align="center">关于-描述</p>
										</td>
										<td>
											<p align="left">
												<textarea name="Data[gytext]" type="text" id="gytext" style="width:98%;"><?php echo $zbp->Config('San_Rabbit')->gytext;?></textarea>
											</p>
										</td>
										<td><p align="left">填写描述。</p></td>
									</tr>
									<tr>
										<td>
											<p align="center">侧栏搜索</p>
										</td>
										<td>
											<p align="left">
												<input type="text" id="clsuo" name="Data[clsuo]" class="checkbox" value="<?php echo $zbp->Config('San_Rabbit')->clsuo;?>"/>
											</p>
										</td>
										<td><p align="left">侧栏是否显示搜索</p></td>
									</tr>
									<tr>
										<td>
											<p align="center">侧栏热门文章</p>
										</td>
										<td>
											<p align="left">
												<input type="text" id="clremen" name="Data[clremen]" class="checkbox" value="<?php echo $zbp->Config('San_Rabbit')->clremen;?>"/>
											</p>
										</td>
										<td><p align="left">侧栏是否显示热门文章</p></td>
									</tr>
									<tr>
										<td>
											<p align="center">侧栏热评文章</p>
										</td>
										<td>
											<p align="left">
												<input type="text" id="clreping" name="Data[clreping]" class="checkbox" value="<?php echo $zbp->Config('San_Rabbit')->clreping;?>"/>
											</p>
										</td>
										<td><p align="left">侧栏是否显示热评文章</p></td>
									</tr>
				
                                    <tr>
                                        <td></td>
                                        <td>
                                            <input type="hidden" name="csrfToken" value="<?php echo $zbp->GetCSRFToken(); ?>">
                                            <button type="Submit" class="btn btn-primary">提交</button>
                                          
                                        </td>
                                    </tr> 
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                
                

            </div>
        <div class="copyright">
            <p>三十工作室</p>
        </div>
		
	</div>	

<?php
require $blogpath . 'zb_system/admin/admin_footer.php';     		   		
RunTime();     				 		
?>